package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;

/**
 * @author liangjiawei
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "Exercises")
public class Exercises extends BaseModel {	//章节习题
	private Integer videoClass;     //视频章节id
	private Integer documentation;     //文档章节id
	@ManyToOne(cascade = CascadeType.REFRESH)
	private CourseSubjectHub courseSubjectHub;     //课程题库id
	private Integer sort;

}

